﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ESoft.Job
{
    /// <summary>
    /// cron 表达式标注
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)]
    public class CronAttribute : Attribute
    {
        /// <summary>
        /// <![CDATA[
        ///      * * * * * run every minute
        ///      00 13 * * * run at 1:00 pm daily
        ///      00 1,2,3 * * * run at 1:00 pm, 2:00 pm and 3:00 pm daily
        ///      00 1-3 * * * same as above
        ///      00 */2 * * * run every two hours on the hour
        /// ]]>
        /// </summary>
        public string CronExpression { get; set; }
    }
}
